package com.kc.business.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * TODO
 * 名家表
 *
 * @author zhangshuo
 * @version 1.0
 * @date 2020/9/10
 */
@Data
@Table(name = "kc_home_celebrity")
public class BizCelebrity implements Serializable {
    private static final long serialVersionUID = 6540992786673554168L;

    @Id
    private Integer id;
    /*入驻用户id*/
    private Integer userId;
    /** 排序 */
    private Integer sort;
    /** 展示名 */
    @NotBlank(message = "展示名不能为空")
    private String listName;
    /** 展示图片 */
    @NotBlank(message = "展示图片不能为空")
    private String listImg;
    /** 擅长领域 */
    @NotBlank(message = "擅长领域不能为空")
    private String strengthsField;
    /** 所属流派 */
    @NotBlank(message = "所属流派不能为空")
    private String sect;
    /** 地区 */
    //@NotBlank(message = "地区不能为空")
    private String region;
    /** 点击数量 */
    private Integer watchNum;
    /** 状态 */
    private Integer status;
    /** 分类id */
    private Integer typeId;
    /** 轮播图id */
    private Integer carouselType;
    /** 省 */
    private Integer province;
    /** 市 */
    private Integer city;
    /** 区 */
    private Integer area;
    /** 删除状态:1删除，0未删除 */
    private Integer isDeleted;
    /** 在售商品数量 */
    private Integer goodsNum;
    /** 经度 */
    @NotNull(message = "经度不能为空")
    @DecimalMin(value = "-180", message = "经度有误")
    @DecimalMax(value = "180", message = "经度有误")
    private BigDecimal longitude;
    /** 纬度 */
    @NotNull(message = "纬度不能为空")
    @DecimalMin(value = "-90", message = "经度有误")
    @DecimalMax(value = "90", message = "经度有误")
    private BigDecimal latitude;
    /** 简介 */
    @NotBlank(message = "简介不能为空")
    private String introduction;

    private String adcode;

    private LocalDateTime createTime;

    /**二级商户号*/
    private String subMchid;
}
